package com.yjd.bi.borrow.service;

import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.borrow.model.ProfitFormModel;

/**
 * <b>description</b>：投资人还款报表业务接口<br>
 * <b>time</b>：2016-08-18 09:48:33 <br>
 * <b>author</b>：  renbangjie renbangjie@126.com
 */
public interface IProfitFormService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ProfitFormModel insert(ProfitFormModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(ProfitFormModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	
	/**
	 * 使用加息券额外产生利息
	 * @param paramMap
	 * @return
	 */
	public Double getTotalRaiseAmount(Map<String, Object> paramMap);

}
